package myschool.myshchool15.homework;
//100以内（包括100）的偶数之和
public class SumEven {
    public static void main(String[] args) {
    int number = 0;
    int sum = 0;
/**   while(number <= 100){
*        sum = sum + number;
*        number = number + 2;
*
   }*/
        while(number<=100){
            number++;
            if((number%2) == 0){
                sum = sum + number;
            }
        }
        System.out.println("100以内（包括100）的偶数之和"+sum);
    }
}
